﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
using Ay.Framework.WPF.Controls;
using Ay.MvcFramework;
using MPSystem.Controllers;
using System.ComponentModel;
using Ay.Framework.WPF;
using Base.BLL;


namespace MPSystem.Views
{
    /// <summary>
    /// MPLogin.xaml 的交互逻辑
    /// </summary>
    public partial class MPLogin : AyWindow
    {
        public MPLogin()
        {
            InitializeComponent();
            AYUI.Message.Register<object>(this,MESSAGES.LoginSuccess, VLoginSuccess);  
        }

        private void VLoginSuccess(object obj)
        {
            this.Hide();
            _ViewStart v = new _ViewStart();
            v.Show();
        }


        public void BtnLogin_Click_1(object sender, RoutedEventArgs e)
        {

        }

        
    }







    public partial class MPLogin : AyWindow
    {
        #region 控制器
        private Actions<MPLoginController> _mvc;
        public Actions<MPLoginController> Mvc
        {
            get
            {
                if (_mvc == null)
                {
                    _mvc = new Actions<MPLoginController>(DataContext as MPLoginController);
                }
                return _mvc;
            }
        }
        #endregion
    }
}
